<?php
/**
 * Description of 
 *
 * @author Marco Mounzer
 * @email m.mounzer@gmail.com
 * @copyright 2013
 */
require_once '../lib/begin.php';

if (!isset($_SESSION['user']) || get_class($_SESSION['user']) != 'WebUser')
    header('location: /');
?>

<html>
    <body>
        <form action="uploadimage.php" method="post" enctype="multipart/form-data" id="photoupload">
            <table>
                <thead>
                    <tr>
                        <th colspan="2">Photo</th>
                    </tr>
                </thead>

                <tbody>
                    <tr>
                        <th>
                            <label for="file">Filename:</label>
                        </th>
                        <td>
                            <input type="file" name="file[]" id="file0"><br>
                            <input type="file" name="file[]" id="file1"><br>
                            <input type="file" name="file[]" id="file2"><br>
                            <input type="file" name="file[]" id="file3"><br>
                            <input type="file" name="file[]" id="file4"><br>
                            <input type="file" name="file[]" id="file5"><br>
                            <input type="file" name="file[]" id="file6"><br>
                            <input type="file" name="file[]" id="file7"><br>
                            <input type="file" name="file[]" id="file8"><br>
                            <input type="file" name="file[]" id="file9"><br>
                        </td>
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="2">
                            <input type="hidden" name="car_id" id="car_id" value="<?php echo $_REQUEST['car_id']; ?>" />
                            <input type="hidden" name="id" id="id" value="" />
                        </td>
                    </tr>
                </tfoot>
            </table>
        </form>
    </body>
</html>